﻿<Window x:Class="IGL_Talk_Windows_Desktop.View.ErrorView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="IGL Talk - Error" SizeToContent="WidthAndHeight"
        WindowStartupLocation="CenterScreen" AllowsTransparency="True" WindowStyle="None"
        Background="Transparent" Foreground="White" Topmost="True" ShowInTaskbar="False">
    <Border CornerRadius="2" Background="{DynamicResource BlueGradient}" MouseLeftButtonDown="Border_MouseLeftButtonDown" BorderBrush="#FF0073C3" BorderThickness="1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="0" Width="30" HorizontalAlignment="Right">
                <Button Click="Button_Click" Style="{DynamicResource CloseButton}" FontSize="14" Content="x"/>
            </StackPanel>
            <StackPanel Grid.Row="1" VerticalAlignment="Center"  Margin="30,0">
                <StackPanel  Orientation="Horizontal" Margin="0,10">
                    <Image Width="100" Source="..\logo.png"/>
                    <Label Content="Error :(" Margin="20,0,0,0" VerticalAlignment="Bottom" FontSize="28" Foreground="White" />
                </StackPanel>

                <TextBlock Text="{Binding ErrorMessage, UpdateSourceTrigger=PropertyChanged}"  MaxWidth="300" TextWrapping="WrapWithOverflow"/>
                <Button Content="Ok" Click="Button_Click" Height="30" Width="80" Margin="0,20" HorizontalAlignment="Right" />
            </StackPanel>
        </Grid>
    </Border>
</Window>
